﻿
/// <summary>
/// 为了方便填充 ComboBox 和 ListBox 控件的DataSource属性，特提供一个对象来通用化。
/// 使用方法：
/// ListBox|ComboBox.DisplayMember = "DisplayMember";
/// ListBox|ComboBox.ValueMember = "ValueMember";
/// </summary>
public class DataSourceObject
{
    public DataSourceObject(string displayMember, object valueMember)
    {
        this.DisplayMember = displayMember;
        this.ValueMember = valueMember;
    }

    public string DisplayMember
    {
        get;
        set;
    }

    public object ValueMember
    {
        get;
        set;
    }
}
